home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7481 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.iadfw.net!usenet
  2. From: Mark Nelson <markn@airmail.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: [Q]Serial Communications under OWL 2.0
  5. Date: Fri, 23 Feb 1996 09:17:41 -0600
  6. Organization: customer of Internet America
  7. Message-ID: <312DDA95.2013@airmail.net>
  8. References: <4gdagj$2ml@antares.en.com>
  9. NNTP-Posting-Host: dal21-09.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  14.  
  15. _______ wrote:
  16. > I have a serial communications library which I developed using interrupts.  The
  17. > library works fine under DOS.  The code will compile and run, but generates an
  18. > exception when the Serial port is initialized.
  19. > Does anyone know of a compiler option or other setting that I am missing?
  20. > Thanks for any help.
  21. > Eric Conko
  22.  
  23. Judging from your subject line, it looks as though you are saying this 
  24. problem occurs when you try to use the library under Windows.  If this is 
  25. the case, you need to use the Windows Comm API.  There are something like
  26. nine different functions to work with serial ports under Windows.  Writing
  27. directly to UART and installing interrupt handlers isn't really an option
  28. at the application program level.
  29.  
  30. My book "Serial Communications: A C++ Developer's Guide" has a C++
  31. class that lets you access the com ports using exactly the same function
  32. calls under MS-DOS and Windows.  (You can get more info on the book
  33. on my Web Page.)  But you don't really need my book to just read and
  34. write.  Use your online help to look up OpenComm(), and follow the links
  35. from there.
  36.  
  37. Mark Nelson
  38. http://web2.airmail.net/markn - RS-232 articles online + book info
  39.